package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName DtuPushTypeEnum.java
 * @Description TODO
 * @createTime 2023年12月18日
 */
@Getter
@RequiredArgsConstructor
public enum RedisTypeEnum {

    PUSH_0(0,Constants.WARNING_EQUIPMENT_RUNNING),
    PUSH_1(1, Constants.WARNING_EQUIPMENT_RUNNING_BREAKDOWN);



    private final int code;
    private final String name;



    public static RedisTypeEnum getPushTypes(int code) {
        for (RedisTypeEnum dtuPushTypeEnum : RedisTypeEnum.values()) {
            if (dtuPushTypeEnum.getCode()==(code)) return dtuPushTypeEnum;
        }
        return null;
    }

}
